package demo_0324;

public class SaleEmployee extends Employee{
    private double salemoney;
    private double tc;
    public SaleEmployee(String name, int age, double salemoney, double tc) {
        super(name, age);
        this.salemoney = salemoney;
        this.tc = tc;
    }
    @Override
    public double weeklySalary() {
        return salemoney*tc;
    }
}
